import { request } from "../request";
import { ADMINAPI } from "../const";

export function getOrderList() {
  return request({
    url: `${ADMINAPI}/order/list`,
  });
}

export function updateOrder(data) {
  return request({
    url: `${ADMINAPI}/order/${data.id}`,
    method: "put",
  });
}
